﻿@model string

<div class="main">
    <table border=0 cellpadding=0 cellspacing=0 class="tb-head form-inline form-group-sm">
        <tr>
            <td align="right">
                <select id="siteId" name="siteId" class="form-control form-control-xs ui-queryString ui-queryString-search" data-custom-params="textField:'Remark'" data-source="@Html.GetSiteListJson()">
                    <option value="">所有应用站点</option>
                </select>
                <select class="form-control form-control-xs ui-queryString ui-setName">
                    <option value="name">按表名搜索</option>
                    <option value="remark">按标识搜索</option>
                </select>
                <input type="text" placeholder="搜索关键词" class="form-control ui-keyword ui-queryString">
                <button type="button" class="btn btn-default btn-sm ui-queryString-search">搜索</button>
            </td>
        </tr>
    </table>
    <table border=0 cellpadding=0 cellspacing=0 class="table table-bordered" id="tb_list">
        <thead>
            <tr>
                <td align="center" style="width:40px"><input type="checkbox" title="选择" class="ui-selectInvert hidden" data-custom-params="isReverse:false"></td>
                <td align="center">表名</td>
            </tr>
        </thead>
        <tr class="item list-template-item" id="item_{id}" name="{name}">
            <td align="center" style="width:40px"><input type="checkbox" value="{id}" class="checked-item"></td>
            <td align="left">{remark}（表名：{name}）</td>
        </tr>
    </table>

    <div class="submit-footerbar">
        <label class="control-label"></label>
        <div class="controls">
            <button type="button" class="btn btn-primary btn-sm ui-closeDialog">确定</button>
            <button type="button" class="btn btn-sm btn-default ui-closeDialog">关闭</button>
        </div>
    </div>
</div>

<script type="text/javascript">
    var objName = Request("objname");
    var $siteId = $("#siteId");
    $siteId.SelectBind({dataSourceFrom:"attr"});
    $siteId.SetValue(Request("siteid"));
    function LoadedInit()
    {
        SetSelectedDisabled();
    }

    function LoadData() {
        var ajaxUrl = "@Url.ActionUrl("PageListData")?_isload=1"
        $("#tb_list").ListBind({ url: ajaxUrl, callBack: "LoadedInit" });
    }
    LoadData();
</script>
<script src="/Js/selectData.js" type="text/javascript"></script>